package dazuoye;

public class Grastudent extends ExamScore{
    
	private String tutor;
	private String grasex;
    private String graidnumber;
    private String gramajor;
    
    public String getTutor() {
		return tutor;
	}

	public String getGrasex() {
		return grasex;
	}

	public String getGraidnumber() {
		return graidnumber;
	}

	public String getGramajor() {
		return gramajor;
	}
	
	public Grastudent(String initialCode, String initialSubject, int initialScore, String initialName,String initialTutor,String initialGrasex,String initialGraidnumber,String initialGramajor) {
		
		super(initialCode, initialSubject, initialScore, initialName);
		this.tutor=initialTutor;
        this.grasex=initialGrasex;
        this.graidnumber=initialGraidnumber;
        this.gramajor=initialGramajor;
		
	}
	
	@Override
	public String toString(){
        return super.toString()+"_"+getTutor()+"_"+getGrasex()+"_"+getGraidnumber()+"_"+getGramajor();
    }

}
